package com.czn.shopdemo.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Zenan Chen
 * @date 2023/4/6 14:32
 */
@Data
@TableName(value = "t_shop_demo_payment")
@EqualsAndHashCode(callSuper = false)
public class Payment extends BaseEntity {

    @ApiModelProperty(value = "用户id", example = "5", hidden = true)
    @TableField("user_id")
    private String userId;
    @ApiModelProperty(value = "订单id", example = "123")
    @TableField("order_id")
    private String orderId;

    @ApiModelProperty(value = "支付商品个数", example = "5")
    @TableField("count")
    private Long count;

    @ApiModelProperty(value = "支付金额", example = "123.456")
    @TableField("price")
    private Double price;

    @ApiModelProperty(value = "支付类型（微信 支付宝）", example = "1")
    @TableField("payment_type")
    private Integer paymentType;

    @ApiModelProperty(value = "交易内容", example = "张三|2023-04-06|华为京东旗舰店|华为Mate40|")
    @TableField("subject")
    private String subject;

}
